import { RouteRecordRaw } from 'vue-router';
import { userGlobalRoute } from './user-route';
import { IndexRoute } from './index-route';
import { AppViewRoute } from './app-view-route';

//  全局路由 404 500 login
const GlobalRoute = [...userGlobalRoute];

const RootRoute = [
	{
		path: '/',
		redirect: '/index',
		meta: {
			title: 'Index',
		},
	},
];

export const basicRoutes: RouteRecordRaw[] = [
	...RootRoute,
	...IndexRoute,
	...AppViewRoute,
	...GlobalRoute,
];
